import axios from '@/util/axios.config'

export const getPTList = (data) => {
  return axios({
    url: '/admin/api/pt/list',
    method: 'post',
    data
  })
}

export const downLoadExcel = (data) => {
  return axios({
    url: '/admin/api/pt/downloadExcel',
    method: 'get',
    responseType: 'blob',
    params: data
  })
}

export const uploadPTexcel = (data) => {
  return axios({
    url: '/admin/api/pt/uploadExcel',
    method: 'post',
    headers: {'Content-Type': 'multipart/form-data'},
    data
  })
}
// /admin/api/pt/remove
export const deleteExcel = (data) => {
  return axios({
    url: '/admin/api/pt/remove',
    method: 'get',
    params: data
  })
}

export const coverPT = (data) => {
  return axios({
    url: '/admin/api/pt/cover',
    method: 'get',
    params: data
  })
}

